.class public Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;
.super Landroid/widget/RelativeLayout;
.source "ExpandableCellLayout.java"


# instance fields
.field private mExpandedHeight:I

.field private mSizeChangedListener:Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;


# direct methods
.method public constructor <init>(Landroid/content/Context;)V
    .registers 3
    .param p1, "context"    # Landroid/content/Context;

    .prologue
    .line 43
    invoke-direct {p0, p1}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;)V

    .line 40
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    .line 44
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;)V
    .registers 4
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;

    .prologue
    .line 47
    invoke-direct {p0, p1, p2}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;)V

    .line 40
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    .line 48
    return-void
.end method

.method public constructor <init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V
    .registers 5
    .param p1, "context"    # Landroid/content/Context;
    .param p2, "attrs"    # Landroid/util/AttributeSet;
    .param p3, "defStyle"    # I

    .prologue
    .line 51
    invoke-direct {p0, p1, p2, p3}, Landroid/widget/RelativeLayout;-><init>(Landroid/content/Context;Landroid/util/AttributeSet;I)V

    .line 40
    const/4 v0, -0x1

    iput v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    .line 52
    return-void
.end method


# virtual methods
.method public getExpandedHeight()I
    .registers 2

    .prologue
    .line 68
    iget v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    return v0
.end method

.method protected onMeasure(II)V
    .registers 5
    .param p1, "widthMeasureSpec"    # I
    .param p2, "heightMeasureSpec"    # I

    .prologue
    .line 55
    iget v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    if-lez v0, :cond_c

    .line 56
    iget v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    const/high16 v1, -0x80000000

    invoke-static {v0, v1}, Landroid/view/View$MeasureSpec;->makeMeasureSpec(II)I

    move-result p2

    .line 58
    :cond_c
    invoke-super {p0, p1, p2}, Landroid/widget/RelativeLayout;->onMeasure(II)V

    .line 59
    return-void
.end method

.method protected onSizeChanged(IIII)V
    .registers 6
    .param p1, "w"    # I
    .param p2, "h"    # I
    .param p3, "oldw"    # I
    .param p4, "oldh"    # I

    .prologue
    .line 62
    iput p2, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    .line 64
    iget-object v0, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mSizeChangedListener:Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;

    invoke-interface {v0, p2}, Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;->onSizeChanged(I)V

    .line 65
    return-void
.end method

.method public setExpandedHeight(I)V
    .registers 2
    .param p1, "expandedHeight"    # I

    .prologue
    .line 72
    iput p1, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mExpandedHeight:I

    .line 73
    return-void
.end method

.method public setSizeChangedListener(Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;)V
    .registers 2
    .param p1, "listener"    # Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;

    .prologue
    .line 76
    iput-object p1, p0, Lcom/zuimeia/suite/expandablecell/listview/ExpandableCellLayout;->mSizeChangedListener:Lcom/zuimeia/suite/expandablecell/listview/OnSizeChangedListener;

    .line 77
    return-void
.end method
